//
//  HMProfileTableViewController.swift
//  WeiBo
//
//  Created by niexiaobing on 16/9/19.
//  Copyright © 2016年 niexiaobing. All rights reserved.
//

import UIKit

class HMProfileTableViewController: UITableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
       setupNavUI()
        
        addNavRightButton()
    }
    
    private func addNavRightButton() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
        
    }
    
    //  点击事件
    func pushAction() -> Void {
        let testVc = HMTestViewController()
        navigationController?.pushViewController(testVc, animated: true)
        
        
    }
    
    
    private func setupNavUI() {
        
        //        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "登录", target:  action: )
        //        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "注册", target: action:)
        
    }
    

}
